//
//  LBSingChooseTableView.h
//  V-Learn
//
//  Created by Apple on 2019/2/22.
//  Copyright © 2019 yxk. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WKShuangyuModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef void(^ChooseBlock) (NSString *chooseContent,NSIndexPath *indexPath,NSString *optionId,NSString *score);
typedef void(^ChooseBlockTwo) (NSString *testStr,NSIndexPath *indexPath);
@interface LBSingChooseTableView : UIView<UITableViewDelegate,UITableViewDataSource>
@property(nonatomic,strong)UITableView * MyTable;
@property(nonatomic,strong)NSArray * dataArr;
@property(nonatomic,strong)NSIndexPath * currentSelectIndex;
@property(nonatomic,copy)ChooseBlock block;
@property (nonatomic,strong) WKShuangyuModel *model1;
@property(nonatomic,strong)UIView *headView;

@property(nonatomic,strong)UIView *footView;
/**
 *  历史模考cell不能被选择
 */
@property(nonatomic,assign)BOOL dontSelectCell;


/**
 *  练习有答案后cell不能被选择
 */
@property(nonatomic,assign)BOOL preiceDontSelect;



-(UIView *)createHeadView:(NSString *)title;

-(UIView *)createFootViewWithAnswer:(UILabel *)answerLabel andWithOtherAnswer:(UILabel *)otherLabel AndWith:(BOOL)isFlast andWithCorrent:(BOOL)isCorrent andResolve:(UILabel *)resolveLabel;

+(LBSingChooseTableView *)ShareTableWithFrame:(CGRect)frame;

-(instancetype)initWithViewFrame:(CGRect)frame;

-(void)ReloadData;


@end

NS_ASSUME_NONNULL_END
